/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package orpg;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.tiled.TiledMap;

/**
 *
 * @author Revix2k10
 */
public class ORPG extends BasicGame {

  static int screenWidth,screenHeight,fpslimit;
  static boolean fullScreen,showFPS;
  static String title = "Online Roleplaying Game Pre-Alpha 0.0";
  private TiledMap map;
  
  public ORPG(){
      super(title);
  }
  

  public void init(GameContainer gc) throws SlickException{
     map = new TiledMap("tilesets/alpha.tmx");
  } 
  
  public void update(GameContainer gc , int delta) throws SlickException{
      
  }
  
  public void render(GameContainer gc , Graphics g) throws SlickException{
    map.render(0,0);
  }
  
  
  
  
  public static void main(String[] args) throws SlickException {
        screenWidth = 768;
        screenHeight = 432;
        fullScreen = false;
        showFPS = true;
        fpslimit = 60;
        AppGameContainer app = new AppGameContainer(new ORPG());
        app.setDisplayMode(screenWidth,screenHeight,fullScreen);
        app.setSmoothDeltas(showFPS);
        app.setTargetFrameRate(fpslimit);
        app.setShowFPS(showFPS);
        app.start();
    }
}
